package redis.inaction.ratelimiter;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class RateLimiterServiceApplication {

    public static void main(String[] args) {
        System.setProperty("reactor.netty.ioSelectCount","1");
        int ioWorkerCount = Math.max(Runtime.getRuntime().availableProcessors()*3, 4);
        System.setProperty("reactor.netty.ioWorkerCount",String.valueOf(ioWorkerCount));

        SpringApplication.run(RateLimiterServiceApplication.class, args);
    }

}
